package cn.com.open.itembank.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * Created by lucky on 2017/12/21.
 */
@Mapper
public interface ResourceInfoMapper {
    /**
     * 根据资源ID得到资源路径.
     *
     * @param id the id
     * @return the resource by id
     */
    @Select("SELECT Url FROM ResourceInfo WHERE ID=#{id}")
    String getResourceUrlById(@Param("id") String id);
}
